from django.db import models
import datetime
from user.models import User
from wedding_info.models import Wedding_Info
# Create your models here.


class Message(models.Model):
    message = models.CharField(max_length=200, verbose_name='用户留言', default='')
    add_time = models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')
    user = models.ForeignKey(User, on_delete=models.CASCADE, default=2)
    wedding = models.ForeignKey(Wedding_Info, on_delete=models.CASCADE, default=2)
